home *** CD-ROM | disk | FTP | other *** search
- .TH SINTERP
- 6 "IRIT Version 6.0"
- .SH NAME
- SINTERP
-
-
-
- SurfaceType SINTERP( ListType PtList, NumericType UOrder, NumericType VOrder,
- NumericType USize, NumericType VSize,
- ConstantType Param)
-
- Computes a Bspline polynomial surface that interpolates or approximates
- the rectangular grid of points in PtList. The Bspline surface will
- have orders UOrder and VOrder and mesh of size USize by
- VSize control points. The knots will be spaced according to
- Param which can be one of PARAM_UNIFORM, PARAM_CHORD or
- PARAM_CENTRIP. The former prescribed a uniform knot sequence and the
- latters specified a knot spacing accoridng to the chord length and a square
- root of the chord length. Currently only PARAM_UNIFORM is supported.
- PtList is a list of list of points where all lists should carry the
- same amount of points in them, defining a rectangular grid. All points in
- PtList must be of type (E1-E5, P1-P5) control point, or regular
- PointType. If USize and VSize are equal to the number of points
- in the grid PtList the resulting curve will interpolate the
- data set. Otherwise, if USize or VSize is less than the number
- of points in PtList the point data set will be least square
- approximated. In no time can USize or VSize be larger that the
- number of points in PtList or lower than UOrder and VOrder,
- respectively. If USize or VSize are zero, the grid size
- is used, forcing an interpolation of the data set.
-
- All interior knots will be distinct preserving maximal continuity.
- The resulting Bspline surface will have open end conditions.
-
- Example:
-
- pl = nil();
- pll = nil();
- for ( x = -5, 1, 5,
- pl = nil():
- for ( y = -5, 1, 5,
- snoc( point( x, y, sin( x * Pi / 2 ) * cos( y * Pi / 2 ) ),
- pl )
- ):
- snoc( pl, pll ) );
-
- s1 = sinterp( pll, 3, 3, 8, 8, PARAM_UNIFORM );
- s2 = sinterp( pll, 3, 3, 11, 11, PARAM_UNIFORM );
-
- Samples an explicit surface sin(x) * cos(y) at a grid of 11 by 11 points,
- least square fit with a grid of size of 8 by 8 surface s1, and
- interpolate surface s2 using this data set.
-